/* 
 * File:   protocol.h
 * Author: alex
 *
 * Created on March 13, 2009, 3:49 PM
 */

#ifndef _PROTOCOL_H
#define	_PROTOCOL_H

#ifdef	__cplusplus
extern "C" {
#endif
int handle_join(int * sd);
int handle_leave(int *sd);
void* handleOperation(int connsd);
int request_peer_Send_Chunk(struct chunkLight * cl, int numeroChunk, struct peerLight * pl);


#ifdef	__cplusplus
}
#endif

#endif	/* _PROTOCOL_H */

